package com.yooop.study.singleton;

import com.yooop.study.singleton.enumeration.Singleton;

/**
 * @author yaopin
 * @since 2025/2/12 20:43
 * Copyright © 2025 Bahamut.NetEase. All rights reserved.
 */
public class Main {

    public static void main(String[] args) {
        // 1
        Singleton.SINGLETON.action();
        // 2
        com.yooop.study.singleton.staticinnerclass.Singleton instance = com.yooop.study.singleton.staticinnerclass.Singleton.getInstance();
        instance.action();
        // 3
        com.yooop.study.singleton.doublechecklock.Singleton instance2 = com.yooop.study.singleton.doublechecklock.Singleton.getInstance();
        instance2.action();
    }
}
